﻿using System.Web.UI;

namespace EBAYVN.Controls
{
    [ToolboxData("<{0}:TextBox runat=server></{0}:TextBox>")]
    public sealed class TextBox : System.Web.UI.WebControls.TextBox
    {
        public string PostBackControlId { get; set; }

        protected override void OnPreRender(System.EventArgs e)
        {
            Attributes.Add("onkeydown", "return doPostBackRefered('" + PostBackControlId + "', event);");
        }
    }
}
